package com.sunwayworld.basemodule.samplemanage.location.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sunwayworld.basemodule.samplemanage.location.bean.LimsLocationBoardHoleBean;
import com.sunwayworld.basemodule.samplemanage.location.dao.LimsLocationBoardHoleDao;
import com.sunwayworld.basemodule.samplemanage.location.mapper.LimsLocationBoardHoleMapper;
import com.sunwayworld.framework.mybatis.dao.MybatisDaoSupport;
import com.sunwayworld.framework.spring.annotation.GikamBean;

import java.util.List;

@Repository
@GikamBean
public class LimsLocationBoardHoleDaoImpl extends MybatisDaoSupport<LimsLocationBoardHoleBean, Long> implements LimsLocationBoardHoleDao {

    @Autowired
    private LimsLocationBoardHoleMapper limsLocationBoardHoleMapper;

    @Override
    public LimsLocationBoardHoleMapper getMapper() {
        return limsLocationBoardHoleMapper;
    }

    @Override
    public void batchDeleteByBoardId(List<Long> ids) {
        getMapper().batchDeleteByBoardId(ids);
    }

    @Override
    public List<LimsLocationBoardHoleBean> selectListBySampleIds(List<Long> sampleIds) {
        return getMapper().selectListBySampleIds(sampleIds);
    }
}
